package com.core.Comprimento;

import com.core.Comprimento.ComprimentoBase;

public class Milimetro extends ComprimentoBase {
	
	public Milimetro(double valueToBeConverted){
		this.valueToBeConverted = valueToBeConverted;
	}
	
	@Override
	public double ToMetro(){
		return this.valueToBeConverted/1000;
	}
	
	@Override
	public double ToCentimetro(){
	 return this.valueToBeConverted/10;
	}

	@Override
	public double ToQuilometro(){
	 return this.valueToBeConverted/1000000;
	}
	
	@Override
	public double ToPolegada(){
	 return  this.valueToBeConverted*0.0394;
	}
	
	@Override
	public double ToJarda(){
	 return this.valueToBeConverted*0.0011;
	}

	@Override
	public double ToPe(){
	 return this.valueToBeConverted*0.0033;
	}

}

